<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!-- -------------------------------------------- -->
<jsp:useBean id="employeBean"
	class="by.ostrovsky.webhousingsystem.bean.data.EmployeBean"
	scope="session" />
<c:set var="list" value="${employeBean.entityList}" />
<!-- -------------------------------------------- -->

<form name="editformemploye" method="post">
	<button type="button" onclick="EmBtnNextDown()"
		class="btn btn-success width100">Next</button>
	<table class="table">
		<tr>
			<td></td>
			<td>Id</td>
			<td>Name</td>
			<td>Surname</td>
			<td>Master</td>
			<td>Busy</td>
			<td>Specs</td>
			<td>Free at</td>
		</tr>
		<c:forEach items="${list}" var="item" varStatus="i">
			<tr>
				<td><input type="checkbox" name="selectedEllements"
					value="${i.index}"></td>
				<td><input type="text" name="id" class="form-control"
					value="${item.id}" readonly="readonly"></td>
				<td>${item.name}</td>
				<td>${item.surname}</td>
				<td><c:choose>
						<c:when test="${item.isMaster == true}">
	        				Yes
	    				</c:when>
						<c:otherwise>
		        			No
	    				</c:otherwise>
					</c:choose></td>
				<td><c:choose>
						<c:when test="${item.isBusy == true}">
	        				Yes
	    				</c:when>
						<c:otherwise>
		        			No
	    				</c:otherwise>
					</c:choose></td>
				<td>${item.speciality}</td>
				<td>${item.freeAt}</td>
			</tr>
		</c:forEach>
	</table>
</form>